//
//  CNConsigneeAddressTableViewCell.m
//  BeeQuick_19
//
//  Created by 赵玉忠 on 16/9/25.
//  Copyright © 2016年 CN Team. All rights reserved.
//

#import "CNConsigneeAddressTableViewCell.h"

@interface CNConsigneeAddressTableViewCell()

@property (weak, nonatomic) IBOutlet UILabel *consigneeLabel;
@property (weak, nonatomic) IBOutlet UILabel *connectionLabel;
@property (weak, nonatomic) IBOutlet UILabel *consigneeAddress;
@property (weak, nonatomic) IBOutlet UIButton *buttonClick;

@end
@implementation CNConsigneeAddressTableViewCell

-(void)addTagAndButtonClickTarget:(id)target andWithTag:(NSInteger)tag andAction:(SEL)action{
    self.buttonClick.tag = tag;
    [self.buttonClick addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
    
}
-(void)setModel:(CNConsigneeModel *)model{
    _model = model;
    self.consigneeLabel.text = model.accept_name;
    self.connectionLabel.text = model.telphone;
    self.consigneeAddress.text = model.addr_for_dealer;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
